import json


jsonl_dir=r'/home/lxy/gaobao_data/db_v2.1/train_30w.jsonl'
json_dir=r'/home/lxy/gaobao_data/db_v2.1/train_30w.json'
data=[]
with open(jsonl_dir,'r',encoding='utf-8') as f:
    for line in f:
        data.append(json.loads(line))

with open(json_dir,'w',encoding='utf-8') as f:
    json.dump(data,f,ensure_ascii=False,indent=4)